/*
 * $Id: Application.java 24 2009-03-31 23:40:10Z aaron.day $
 */
package org.crazydays.gameplan;


import java.awt.Dimension;

import javax.swing.JFrame;
import javax.swing.SwingUtilities;

/**
 * Main
 */
public class Application
        extends JFrame
{
	/** serial version uid */
	public final static long serialVersionUID =
	        "$Id: Application.java 24 2009-03-31 23:40:10Z aaron.day $"
	                .hashCode();

	/**
	 * Main
	 * 
	 * @param arguments Arguments
	 */
	public final static void main(String[] arguments)
	{
		SwingUtilities.invokeLater(new Runnable()
		{
			public void run()
			{
				new Application("Game Plan");
			}
		});
	}

	/**
	 * Application constructor.
	 * 
	 * @param title Title
	 */
	public Application(String title)
	{
		super(title);

		// set root pane as GamePlan
		setRootPane(new GamePlan());

		// setup close
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

		setPreferredSize(new Dimension(800, 600));
		pack();
		setVisible(true);
	}
}
